import java.util.Arrays;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:26554
 * Date:2024-11-04
 * Time:14:50
 */
public class text {
    public static void main(String[] args) {
        Scanner x = new Scanner(System.in);
        int y = x.nextInt();
        char[][] arr = new char[y][y];
        for (int i = 0; i < y; i++) {
            for (int j = 0; j < y; j++) {
                if (i == j || i + j == y - 1) {
                    arr[i][j] = '*';
                }else{
                    arr[i][j] = ' ';
                }
            }
        }
        for (int i = 0; i < y; i++) {
            for (int j = 0; j < y; j++) {
                System.out.print(arr[i][j]);
            }
            System.out.print("\n");
        }
    }
}